package cn.com.taiji.oospub.wechat.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.dreamyoung.mprelation.EntityMapper;
import com.github.dreamyoung.mprelation.JoinColumn;
import com.github.dreamyoung.mprelation.ManyToOne;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2020-10-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_common_user")
public class CommonUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("ID")
    private String id;

    @TableField("EMAIL")
    private String email;

    @TableField("LOGIN_NAME")
    private String loginName;

    @TableField("MALE")
    private Double male;

    @TableField("MOBILE")
    private String mobile;

    @TableField("NAME")
    private String name;

    @TableField("NAME_PY")
    private String namePy;

    @TableField("PASSWD")
    private String passwd;

    @TableField("STATUS")
    private String status;

    @TableField("TEL")
    private String tel;

    @TableField("LEADER_AGE")
    private String leaderAge;

    @TableField("SCHOOL_ID")
    private String schoolId;

    @TableField(exist = false)
    @EntityMapper
    @ManyToOne
    @JoinColumn(name="SCHOOL_ID",referencedColumnName = "ID")
    private SchoolBaseInfo school;


    @TableField("ADDRESS")
    private String address;

    @TableField("CREATOR")
    private String creator;

    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @TableField("Type")
    private String Type;

    @TableField("EXPAND_1")
    private String expand1;

    @TableField("EXPAND_2")
    private String expand2;

    @TableField("EXPAND_3")
    private String expand3;

    @TableField("SUPPLIER_ID")
    private String supplierId;


}
